import request from '/src/axios.js';
import {baseUrl} from "../../config/env";

export const paramApi = {
  getList: (current, size, params) => request({
    url: baseUrl + '/api-user/param/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  }),
  remove: (ids) => request({
    url: baseUrl + '/api-user/param/remove',
    method: 'post',
    params: {
      ids,
    }
  }),

  add: (row) => request({
    url: baseUrl + '/api-user/param/submit',
    method: 'post',
    data: row
  }),

  update: (row) => request({
    url: baseUrl + '/api-user/param/submit',
    method: 'post',
    data: row
  })
}
